PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Window Manager >

Programming With the Mac OS 8.5 Window Manager


RepositionWindow

Positions a window relative to another window or a display screen.

pascal OSStatus RepositionWindow (
                     WindowPtr window,
                     WindowPtr parentWindow,
                     WindowPositionMethod method);
window
A value of type WindowPtr . Pass a pointer to the window whose position you want to set.
parentWindow
A value of type WindowPtr . Pass a pointer to the "parent" window, as defined by your application. In cases where the window positioning method does not require a parent window, you should set the parentWindow parameter to NULL .
method
A value of type WindowPositionMethod . Pass a constant specifying the window positioning method to be used; see RepositionWindow Constants for descriptions of possible values.
function result
A result code. See Result Codes.
DISCUSSION

Your application may call the RepositionWindow function to position any window, relative to another window or to a display screen. After positioning the window, RepositionWindow displays the window in its new position. See Positioning a Window on the Desktop for further discussion.

VERSION NOTES

Available with Mac OS 8.5 and later.


© 1999 Apple Computer, Inc. – (Last Updated 18 March 99)